# !/usr/bin/env python3
# -*- encoding: utf-8 -*-
import util
import time
from orm import Model, StringField, FloatField, TextField


class Blog(Model):
    __table__ = 'comments'
    id = StringField(
        primary_key=True, default=util.next_id(), column_type='varchar(50)')
    blog_id = StringField(column_type='varchar(50)')
    user_id = StringField(column_type='varchar(50)')
    user_name = StringField(column_type='varchar(50)')
    user_image = StringField(column_type='varchar(500)')
    content = TextField()
    created_at = FloatField(default=time.time)